package com.icetech.eom.service.impl.sys;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.icetech.eom.dao.sys.UserRoleDao;
import com.icetech.eom.domain.sys.Role;
import com.icetech.eom.domain.sys.UserRole;
import com.icetech.eom.service.sys.IUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangzw
 * @since 2018-12-10
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleDao, UserRole> implements IUserRoleService {
    @Autowired
    private UserRoleDao userRoleDao;
    @Override
    public List<Role> findByUserId(Long userId) {
        return userRoleDao.findByUserId(userId);
    }

    @Override
    public List<Long> findDepIdsByUserId(Long id) {
        return null;
    }

    @Override
    public List<UserRole> findByRoleId(Long id) {
        return null;
    }

    @Override
    public void deleteByUserId(Long userId) {
        userRoleDao.deleteByUserId(userId);
    }
}
